<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>移动端拖拽、吸附案例</title>
  <script>
    document.documentElement.style.fontSize = 
    document.documentElement.clientWidth / 37.5 + 'px';
  </script>
  <style>
    body {
      margin: 0;
    }
    div {
      display: flex;
      flex-direction: column;
    }
    .blank-cell-group,
    .char-cell-group {
      width: 100%;
      flex-direction: row;
    }
    .char-cell-group {
      flex-wrap: wrap;
      margin-top: 8rem;
    }
    .blank-cell-group .cell-item,
    .char-cell-group .cell-item {
      width: 25%;
      height: 25vw;
      padding: .5rem;
      box-sizing: border-box;
    }
    .blank-cell-group .cell-item .wrapper,
    .char-cell-group .cell-item .wrapper {
      width: 100%;
      height: 100%;
      text-align: center;
      font-size: 3rem;
      border: .1rem solid #ddd;
      box-sizing: border-box;
    }
    .char-cell-group .cell-item .wrapper {
      align-items: center;
      justify-content: center;
      color: #fff;
      border: none;
      background-color: #1d7ffd;
    }
  </style>
</head>
<body>
  <div id="app">
    <div class="container">
      <div class="blank-cell-group">
        <div class="cell-item">
          <div class="wrapper"></div>
        </div>
        <div class="cell-item">
          <div class="wrapper"></div>
        </div>
        <div class="cell-item">
          <div class="wrapper"></div>
        </div>
        <div class="cell-item">
          <div class="wrapper"></div>
        </div>
      </div>

      <div class="char-cell-group">
        <!-- <div class="cell-item">
          <div class="wrapper"></div>
        </div> -->
      </div>
    </div>
  </div>
  
  <script src="./index.js"></script>
</body>
</html>